package com.sunchen.asc.service.parameter.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value="全局参数对象vo",description="全局参数param")
public class ParamVo implements Serializable {

    private Long id;

    @ApiModelProperty(value="参数")
    @NotEmpty(message = "不能为空")
    private String title;

    @ApiModelProperty(value="参数值1")
    private String value1;

    @ApiModelProperty(value="参数值2")
    private String value2;

    @ApiModelProperty(value="参数标志（1或2）")
    @NotNull(message = "不能为空")
    private int valueFlag;

    @ApiModelProperty(value="事项编码")
    @NotNull(message = "不能为空")
    private Long typeId;

    @ApiModelProperty(value="是否固定参数（1是，0否）")
    @NotNull(message = "不能为空")
    private int fixed;

    public ParamVo() {
    }

    public ParamVo(Long id, String title, String value1, String value2, int valueFlag, Long typeId, int fixed) {
        this.id = id;
        this.title = title;
        this.value1 = value1;
        this.value2 = value2;
        this.valueFlag = valueFlag;
        this.typeId = typeId;
        this.fixed = fixed;
    }
}
